package com.yxkj.syh.app.huarong.adps;

import android.content.Context;
import android.view.LayoutInflater;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.gongwen.marqueen.MarqueeFactory;
import com.yxkj.syh.app.huarong.R;
import com.yxkj.syh.app.huarong.bean.NoticeResponse;

public class AnnounceViewHolder extends MarqueeFactory<LinearLayout, NoticeResponse.Record> {

    public AnnounceViewHolder(Context context) {
        super(context);
        this.mContext = context;
    }

    @Override
    public LinearLayout generateMarqueeItemView(NoticeResponse.Record data) {
        LinearLayout mView = (LinearLayout) LayoutInflater.from(mContext).inflate(R.layout.item_notice, null);
        ((TextView) mView.findViewById(R.id.title)).setText(data.getName());
        return mView;
    }
}
